# -*- coding: utf-8 -*-

# https://shop119654425.taobao.com/search.htm?orderType=hotsell_desc

SHOP_CUSTOMER = 'https://shop%s.taobao.com/search.htm?orderType=hotsell_desc'

HTTPPROXY_AUTH_ENCODING = 'utf-8'

# 代理ip的文件名
IP_PROXY_FILE_NAME = 'proxies.txt'

DOWNLOAD_TIMEOUT = 300

# 通过url上的关键词判断是否为天猫店
TMALL_SHOP_KEY = 'tmall'
FEED_EXPORT_ENCODING = 'utf-8'


# mysql 配置
db = {
    'url': 'localhost/ztcjl',
    'uname': 'root',
    'pwd': '12345678'
}

# taobao网登陆用户名，密码
taobao_account = {
    'TPL_username': 'wk962471630',
    'TPL_password': 'wk962471630',
    'ua': 'abc',
}
taobao_info = {
    'login_url': 'https://login.taobao.com/member/login.jhtml',
    'login_headers': {
        'Host':'login.taobao.com',
        'Referer' : 'https://login.taobao.com/member/login.jhtml',
        'Content-Type': 'application/x-www-form-urlencoded',
        'Connection' : 'Keep-Alive'
    },
    'post': {
        'TPL_username': taobao_account['TPL_username'],
        'TPL_password': taobao_account['TPL_password'],
        'ncoSig':'',
        'ncoSessionid':'',
        'ncoToken':'73743bd7087e562773a6798e0be429c41aa9129e',
        'slideCodeShow':'false',
        'lang':'zh_CN',
        'loginsite':'0',
        'newlogin':'0',
        'TPL_redirect_url':'',
        'from':'tb',
        'fc':'default',
        'style':'default',
        'css_style':'',
        'keyLogin':'false',
        'qrLogin':'true',
        'newMini':'false',
        'newMini2':'false',
        'tid':'',
        'loginType':'3',
        'minititle':'',
        'minipara':'',
        'pstrong':'',
        'sign':'',
        'need_sign':'',
        'isIgnore':'',
        'full_redirect':'',
        'sub_jump':'',
        'popid':'',
        'callback':'',
        'guf':'',
        'not_duplite_str':'',
        'need_user_id':'',
        'poy':'',
        'gvfdcname':'10',
        'gvfdcre':'',
        'from_encoding':'',
        'sub':'',
        'TPL_password_2': '',
        'loginASR':'1',
        'loginASRSuc':'1',
        'allp':'',
        'oslanguage':'zh-CN',
        'sr':'1536*864',
        'osVer':'',
        'naviVer':'firefox|48',
        'miserHardInfo':'',
        'ua': taobao_account['ua'],
        'um_token':'HV01PAAZ0ab2a16965ccf77857b3ffe0000d7439'
    },
    'allowed_domains': ["taobao.com", "passport.alibaba.com"]
}